package com.ms;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.sql.init.SqlInitializationAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Hello world!
 */

@SpringBootApplication(exclude = {SqlInitializationAutoConfiguration.class})
@EnableTransactionManagement
@MapperScan("com.ms.mapper")
@Slf4j
@EnableCaching
@EnableScheduling
public class MsApplication {
    public static void main(String[] args) {
        SpringApplication.run(MsApplication.class, args);
        log.info("ms-server 启动成功");
    }
}